<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>图书分类查询</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      max-width: 800px;
      margin: 0 auto;
      padding: 20px;
    }

    h1 {
      text-align: center;
      color: #333;
    }

    .controls {
      margin-bottom: 20px;
      display: flex;
      gap: 10px;
      align-items: center;
    }

    select {
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }

    button {
      padding: 8px 16px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }

    button:hover {
      background-color: #45a049;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    th, td {
      padding: 10px;
      border: 1px solid #ddd;
      text-align: left;
    }

    th {
      background-color: #f2f2f2;
    }

    .error {
      color: red;
      text-align: center;
      padding: 20px;
    }
  </style>
</head>
<body>
<h1>图书分类查询</h1>
<form action="${pageContext.request.contextPath}/user" method="post">
  <input type="hidden" name="action" value="getAll">
  <label for="classify">要查询对的图书分类:</label>
  <select name="classify" id="classify">
    <option value="MARXISM_LENINISM">马列主义</option>
    <option value="PHILOSOPHY">哲学</option>
    <option value="SOCIAL_SCIENCES">社会科学</option>
    <option value="NATURAL_SCIENCE">自然科学</option>
    <option value="COMPREHENSIVE_BOOKS">综合性图书</option>
  </select>
  <input type="submit" value="查找">
</form>
</body>
</html>